{include file='../templates/header.tpl'}
<article class="article-container">
    <div class="row-fluid">
        <div class="article-content">
            <header>
                <h1>
                    Columnas de Rodrigo Sotelo
                </h1>
                <div class="post-info">
                </div>
                <div>
                    <form action="/columnas.php" method="post" name="frm1">
                        <h3>Buscar Columnas por Fecha:</h3>
                        <label class="text" for="mes">Mes:
                            <select name="mes">
                                {for $mes=1 to 12}
                                    <option value="{$mes}" {if $smarty.now|date_format:"%m" == $mes}selected="selected"{/if}>
                                        {$arrMes[$mes]}
                                    </option>
                                {/for}
                            </select>
                        </label>
                        <label class="text" for="ano">A&ntilde;o:
                            <select name="ano">
                                {for $ano=2010 to $smarty.now|date_format:"%Y"+1}
                                    <option value="{$ano}" {if $smarty.now|date_format:"%Y" == $ano}selected="selected"{/if}>
                                        {$ano}
                                    </option>
                                {/for}
                            </select>
                        </label>
                        <button class="btn-theme vote" type="submit">Ver Columnas</button>
                    </form>
                </div>
            </header>
            <span class="clearfix"></span>
            <div class="blog">
                <ul class="media-list">
                {foreach from=$columnas item=nota}
                    <li class="media blog-item">
                        <article>
                            <div class="row-fluid">
                                <div class="media-body span12">
                                    <div class="row-fluid">
                                        <div class="span2 blog-date">
                                            <div class="date-meta">
                                                <div class="post-date">
                                                    <div class="date">
															<span class="month">
                                                                {$nota->getFechaPublicacion()|date_format: "%b"}
                                                            </span>
															<span class="day">
                                                                {$nota->getFechaPublicacion()|date_format: "%d"}
                                                            </span>
															<span class="year">
                                                                {$nota->getFechaPublicacion()|date_format: "%Y"}
                                                            </span>
                                                        <hr />
															<span class="time">
                                                                {$nota->getHoraPublicacion()|date_format: "%H:%M"}
                                                            </span>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="span10 blog-desc-container">
                                            <a href="/nota/{$nota->getNotaID()}" title="{$nota->getTitulo()}">
                                                <h4 class="media-heading">{$nota->getTitulo()}</h4>
                                            </a>
                                            <div class="post-meta clearfix">
                                                <ul>
                                                    <li>
                                                        <a href="/seccion/{$nota->getSeccionID()}" title="Category"><i class="bo-icon-asterisk"></i>{$nota->getSeccionNombre()}</a>
                                                    </li>
                                                    <li>
                                                        <span title="Comments"><i class="bo-icon-comment"></i>{$nota->getNumComments()}</span>
                                                    </li>
                                                </ul>
                                            </div>
                                            <div class="media">
                                                <p class="blog-desc">
                                                    {$nota->getDescripcion()}...
                                                </p>
                                                <a href="/nota/{$nota->getNotaID()}" class="btn-theme">Quiero saber m&aacute;s ...</a>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="clearfix">
                            </div>
                        </article>
                    </li>
                {/foreach}
                </ul>
            </div>
            <div class="clearfix">
            </div>
        </div>
    </div>
</article>
</div>
{include file='../templates/footer.tpl'}
